package com.lq.cart.vo;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 购物车详情VO对象
 */
@Data
public class CartDetailVO implements Serializable {

    /**
     * 购物车id
     */
    private Long cartId;

    /**
     * 用户ID
     */
    private Long userId;


    private Long productId;
    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品价格
     */
    private BigDecimal price;

    /**
     * 商品库存
     */
    private Integer stock;

    /**
     * 商品描述
     */
    private String description;
    /**
     * 商品状态
     */
    private Integer status;
    public CartDetailVO() {

    }

    public Long getCartId() {
        return cartId;
    }

    public void setCartId(Long cartId) {
        this.cartId = cartId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }


    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public CartDetailVO(Long cartId, Long userId, Long productId, String productName, BigDecimal productPrice, Integer stock, String description, Integer status) {
        this.cartId = cartId;
        this.userId = userId;
        this.productId = productId;
        this.stock = stock;
        this.description = description;
        this.status = status;
    }
}